#include <stdio.h>
#define NUM 1024
#define BUFF_NONE 0x1
#define BUFF_LINE 0x2
#define BUFF_ALL 0x4
typedef struct file
{
  int fd;
  char buffer[NUM];
  size_t current;
  int flag;
}my_file;
my_file* my_fopen(const char* _str,const char* _mode);
int my_fclose(my_file* file);
int my_fwrite(const void* _str,size_t size,size_t nmenb,my_file* file);
int  my_fflush(my_file* file);
